	package elements.axis ;
	import flash.display.Sprite;
	import elements.axis.Structs.AXISSTRUCT;
	
	class YAxisLeft extends YAxisBase {

		public function new( json:Dynamic ) {
			
			super( json, 'y_axis' );
			
			this.labels = new YAxisLabelsLeft( this, json );
			this.addChild( this.labels );
		}
		
		public override function get_style(): AXISSTRUCT {
			//
			// default values for a left axis
			//
			var style:AXISSTRUCT = {
				stroke:			2,
				tick_length	:	3,
				color:			'#784016',
				offset:			false,
				grid_color:	'#F5E1AA',
				grid_visible:	true,
				three_d:			0,
				steps:			1,
				visible:		true,
				min:			0,
				max:			10
			};
			
			/*
			var maxValue: Float = Math.max($bar_1->data) * 1.07;
			$l = round(log($maxValue)/log(10));
			$p = pow(10, $l) / 2;
			$maxValue = round($maxValue * 1.1 / $p) * $p;
			*/
			
			return style;
		}
		
		public override function resize( label_pos: Float, sc:ScreenCoords ):Void {
			
			super.resize_helper( label_pos, sc, false);
		}
	}
